import {
    createApp
} from 'vue'
import App from './App.vue'
// 导入路由
import router from './router/index'
// 导入pinia
import pinia from './store/index'
// 导入element plus icon
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
// 导入element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 导入element plus国际化
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// 全局css
import "./style.css"

// 创建实例
const app = createApp(App)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.use(ElementPlus, {
    locale: zhCn,
})

app.use(router).use(pinia).mount('#app')